<form action="" class="layui-form layui-form-pane" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-inline">
            <input type="text" lay-verify="required" placeholder="请输入" autocomplete="off"readonly value="{$data.son_name}" class="layui-input">
            <input type="text" style="display: none;" name="son_id" value="{$data.son_id}">
        </div>
        <label class="layui-form-label">余额</label>
        <div class="layui-input-inline">
            <input type="text" lay-verify="required" placeholder="请输入" autocomplete="off" readonly value="{$data.fee}" class="layui-input">
        </div>
        <label class="layui-form-label">充值金额</label>
        <div class="layui-input-inline">
            <input type="text" lay-verify="required" name="fee" placeholder="请输入" autocomplete="off"  value="" class="layui-input">
        </div>
        <button class="layui-btn" lay-filter="ajax">确定</button>
    </div>
</form>

<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('getsonfee')}',page: true,where:{son_id:{$data.son_id}}}" lay-filter="edit-table" data-url="{:url('editPermissions')}" data-key="permission_id">
    <thead>
    <tr>
        <th lay-data="{field:'fee_move_id', width:80, sort: true}">ID</th>
        <th lay-data="{field:'fee', edit:'number', sort: true}">金额</th>
        <th lay-data="{toolbar:'#type',sort: true,width:200}">变动</th>
        <th lay-data="{field:'status',sort: true,width:200}">说明</th>
        <th lay-data="{field:'create_time',sort: true,width:200}">提交时间</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="type">
    {{# if (d.type==1) { }}
    <span class="layui-btn layui-btn-sm">+</span>
    {{# } else if (d.type==2) { }}
    <span class="layui-btn layui-btn-sm layui-btn-danger">-</span>
    {{# } }}
</script>